package com.example.actordemo2.remote;

import akka.actor.ActorSelection;
import akka.actor.ActorSystem;

import java.io.IOException;

public class ServerScoketTest {

    public static void main(String[] args) throws IOException {
        ActorSystem actorSystem = ActorSystem.create("sys1");
        ActorSelection actorSelection = actorSystem
                .actorSelection("akka.tcp://dc_actor1@127.0.0.1:2552/user/remoteActor");
        actorSelection.tell("1111",actorSelection.anchor());
    }


}
